#include "precomp.h"

#pragma once

#include "Map.h"

class GameObject{
public:
	GameObject();

	GameObject(const char* image_path, CL_GraphicContext *gc, Map *map, float collision_radius);

	~GameObject();

	virtual void tick(float delta_time);

	virtual float get_x();

	virtual float get_y();

	virtual float get_collision_radius();

	virtual void set_position(float x, float y);

	virtual void draw(float x, float y);

	bool collide_map();

	static int center_x;
	static int center_y;
	
protected:
	float _x, _y;
	float _collision_radius;
	
	Map *_map;
	
	CL_Sprite *_sprite;
	CL_GraphicContext *_gc;
};